package com.example.dbbackupupload.conifg;

import com.example.dbbackupupload.timer.BackUploadTimer;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @Author Wlos
 * @Date 2025/3/14 10:52
 */
@Component
public class RunTask implements ApplicationRunner {
    @Resource
    private BackUploadTimer backUploadTimer;


    @Override
    public void run(ApplicationArguments args) throws Exception {
        backUploadTimer.run();
    }
}
